Skip to content

Pin create-github-app-token action to immutable commit SHA#82

Merged
VatsalSy merged 1 commit intomainfrom
comphy-lab/explain-unpinned-action-attack-risks
Apr 1, 2026
Merged

Pin create-github-app-token action to immutable commit SHA#82
VatsalSy merged 1 commit intomainfrom
comphy-lab/explain-unpinned-action-attack-risks

Conversation

@VatsalSy
Copy link
Copy Markdown
Member

@VatsalSy VatsalSy commented Apr 1, 2026

Motivation

  • The scheduled workflow used the third-party action actions/create-github-app-token@v1 while passing high-privilege app secrets and granting contents: write, creating a supply-chain risk if the upstream tag is moved or compromised.

Description

  • Replace uses: actions/create-github-app-token@v1 with uses: actions/create-github-app-token@c8f55efbd427e7465d6da1106e7979bc8aaee856 # v1.10.1 in .github/workflows/update-search.yml to pin the action to an immutable commit SHA while preserving the existing app-token minting and push behavior.

Testing

  • Ran ./scripts/lint-check.sh; the script executed and reported pre-existing JavaScript quote-style lint errors unrelated to the workflow change, and the workflow file change was committed successfully.

Codex Task

Copilot AI review requested due to automatic review settings April 1, 2026 11:29
@VatsalSy VatsalSy merged commit e6f5909 into main Apr 1, 2026
7 checks passed
@VatsalSy VatsalSy deleted the comphy-lab/explain-unpinned-action-attack-risks branch April 1, 2026 11:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins the high-privilege actions/create-github-app-token GitHub Action to an immutable commit SHA to reduce supply-chain risk in the scheduled workflow.

Changes:

  • Replaced actions/create-github-app-token@v1 with a pinned commit SHA (c8f55ef...) while retaining the existing behavior.
  • Added an inline version note (# v1.10.1) to preserve human-readable provenance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants